function initActivity() {
	var ActTableRowFunction = function() {
		/* Get the position of the current data from the node */
		var actPos = personActListTemplate.fnGetPosition(this);
		/* Get the data array for this row */
		var actData = personActListTemplate.fnGetData(actPos[0]);

		$("#activityID").val(actData[5]);
		$("#description").val(actData[2]);
		$("#lastModifyDate").val(actData[3]);
		$("#lastModifyUser").val(actData[4]);

		$("#activityTypeDropdown").children().each(function() {
			if ($(this).text() == actData[1]) {
				$(this).attr("selected", "true");
			}
		});

		// set readonly
		$("#updateActButn").removeAttr("disabled");
		$("#addActButn").attr("disabled", "disabled");
	};

	$.getJSON("/hnl/LoadpersonalActList.do?talentID=" + tid, function(data) {
		personActListTemplate = updateTableTemplate(data, "#personalActList",
				"/hnl/template/activityListTableTemplate.jsp",
				"#personActListTemplate", false, ActTableRowFunction, "checkboxAll");
		personActListTemplate.fnSetColumnVis(5, false);
		personActListTemplate.fnSetColumnVis(6, false);
	});

	var delActivityDialog = new HnlDialogObj("#dialog-delete-act",
			"#delActivity", "/hnl/DeleteActivity.do");
	delActivityDialog.buildDialog();
	delActivityDialog.addDialogFunctions();

}